package com.blog.dao;

import com.blog.pojo.User;

import java.util.List;

public interface UserDao {
    //添加一个用户
    public int addUser(User user);
    //删除用户
    public int deleteUser(int id);
    //修改用户
    public int updateUser(User user);
    //查询一个用户
    public User findUserById(int id);
    //查询所有用户
    public List<User> findAll( );

    //经验值增加
    public int addExperience(int uId,int experiencePoints);

    //经验值减少
    public int reduceExperience(int uId,int experiencePoints);

    //查询用户经验值
    public int findExperience(int uId);
//通过用户名查询用户
   public User findByUserName(String username);




}
